.class Lcom/donson/momark/util/a/q;
.super Landroid/os/Handler;


# instance fields
.field final synthetic a:Lcom/donson/momark/util/a/a;


# direct methods
.method constructor <init>(Lcom/donson/momark/util/a/a;)V
    .locals 0

    iput-object p1, p0, Lcom/donson/momark/util/a/q;->a:Lcom/donson/momark/util/a/a;

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 6

    const/16 v2, 0x8

    invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Thread;->isInterrupted()Z

    move-result v0

    if-nez v0, :cond_0

    iget v0, p1, Landroid/os/Message;->what:I

    packed-switch v0, :pswitch_data_0

    :cond_0
    :goto_0
    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    return-void

    :pswitch_0
    iget-object v0, p0, Lcom/donson/momark/util/a/q;->a:Lcom/donson/momark/util/a/a;

    invoke-static {v0}, Lcom/donson/momark/util/a/a;->a(Lcom/donson/momark/util/a/a;)Lcom/donson/momark/util/a/r;

    move-result-object v0

    iget-object v1, p0, Lcom/donson/momark/util/a/q;->a:Lcom/donson/momark/util/a/a;

    invoke-static {v1}, Lcom/donson/momark/util/a/a;->d(Lcom/donson/momark/util/a/a;)I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/donson/momark/util/a/r;->a(I)V

    iget-object v0, p0, Lcom/donson/momark/util/a/q;->a:Lcom/donson/momark/util/a/a;

    invoke-static {v0}, Lcom/donson/momark/util/a/a;->e(Lcom/donson/momark/util/a/a;)Landroid/widget/TextView;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    iget-object v2, p0, Lcom/donson/momark/util/a/q;->a:Lcom/donson/momark/util/a/a;

    invoke-static {v2}, Lcom/donson/momark/util/a/a;->d(Lcom/donson/momark/util/a/a;)I

    move-result v2

    invoke-static {v2}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v2, "%"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0

    :pswitch_1
    iget-object v0, p0, Lcom/donson/momark/util/a/q;->a:Lcom/donson/momark/util/a/a;

    const/16 v1, 0x64

    invoke-static {v0, v1}, Lcom/donson/momark/util/a/a;->a(Lcom/donson/momark/util/a/a;I)V

    iget-object v0, p0, Lcom/donson/momark/util/a/q;->a:Lcom/donson/momark/util/a/a;

    invoke-static {v0}, Lcom/donson/momark/util/a/a;->g(Lcom/donson/momark/util/a/a;)Lcom/donson/momark/util/q;

    move-result-object v0

    invoke-virtual {v0, v2}, Lcom/donson/momark/util/q;->setVisibility(I)V

    iget-object v0, p0, Lcom/donson/momark/util/a/q;->a:Lcom/donson/momark/util/a/a;

    invoke-static {v0}, Lcom/donson/momark/util/a/a;->a(Lcom/donson/momark/util/a/a;)Lcom/donson/momark/util/a/r;

    move-result-object v0

    invoke-virtual {v0, v2}, Lcom/donson/momark/util/a/r;->setVisibility(I)V

    iget-object v0, p0, Lcom/donson/momark/util/a/q;->a:Lcom/donson/momark/util/a/a;

    invoke-static {v0}, Lcom/donson/momark/util/a/a;->e(Lcom/donson/momark/util/a/a;)Landroid/widget/TextView;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v0, p0, Lcom/donson/momark/util/a/q;->a:Lcom/donson/momark/util/a/a;

    new-instance v1, Ljava/lang/StringBuilder;

    iget-object v2, p0, Lcom/donson/momark/util/a/q;->a:Lcom/donson/momark/util/a/a;

    invoke-static {v2}, Lcom/donson/momark/util/a/a;->h(Lcom/donson/momark/util/a/a;)Ljava/lang/String;

    move-result-object v2

    iget-object v3, p0, Lcom/donson/momark/util/a/q;->a:Lcom/donson/momark/util/a/a;

    invoke-static {v3}, Lcom/donson/momark/util/a/a;->h(Lcom/donson/momark/util/a/a;)Ljava/lang/String;

    move-result-object v3

    const-string v4, "/"

    invoke-virtual {v3, v4}, Ljava/lang/String;->lastIndexOf(Ljava/lang/String;)I

    move-result v3

    add-int/lit8 v3, v3, 0x1

    invoke-virtual {v2, v3}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v2, p0, Lcom/donson/momark/util/a/q;->a:Lcom/donson/momark/util/a/a;

    invoke-static {v2}, Lcom/donson/momark/util/a/a;->j(Lcom/donson/momark/util/a/a;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/donson/momark/util/a/a;->a(Lcom/donson/momark/util/a/a;Ljava/lang/String;)V

    iget-object v0, p0, Lcom/donson/momark/util/a/q;->a:Lcom/donson/momark/util/a/a;

    new-instance v1, Ljava/io/File;

    const-string v2, "/sdcard/momark/"

    iget-object v3, p0, Lcom/donson/momark/util/a/q;->a:Lcom/donson/momark/util/a/a;

    invoke-static {v3}, Lcom/donson/momark/util/a/a;->w(Lcom/donson/momark/util/a/a;)Ljava/lang/String;

    move-result-object v3

    invoke-direct {v1, v2, v3}, Ljava/io/File;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-static {v0, v1}, Lcom/donson/momark/util/a/a;->a(Lcom/donson/momark/util/a/a;Ljava/io/File;)V

    iget-object v0, p0, Lcom/donson/momark/util/a/q;->a:Lcom/donson/momark/util/a/a;

    invoke-static {v0}, Lcom/donson/momark/util/a/a;->b(Lcom/donson/momark/util/a/a;)Ljava/io/File;

    move-result-object v0

    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/donson/momark/util/a/q;->a:Lcom/donson/momark/util/a/a;

    invoke-static {v0}, Lcom/donson/momark/util/a/a;->b(Lcom/donson/momark/util/a/a;)Ljava/io/File;

    move-result-object v0

    new-instance v1, Ljava/io/File;

    const-string v2, "/sdcard/momark/"

    iget-object v3, p0, Lcom/donson/momark/util/a/q;->a:Lcom/donson/momark/util/a/a;

    invoke-static {v3}, Lcom/donson/momark/util/a/a;->h(Lcom/donson/momark/util/a/a;)Ljava/lang/String;

    move-result-object v3

    iget-object v4, p0, Lcom/donson/momark/util/a/q;->a:Lcom/donson/momark/util/a/a;

    invoke-static {v4}, Lcom/donson/momark/util/a/a;->h(Lcom/donson/momark/util/a/a;)Ljava/lang/String;

    move-result-object v4

    const-string v5, "/"

    invoke-virtual {v4, v5}, Ljava/lang/String;->lastIndexOf(Ljava/lang/String;)I

    move-result v4

    add-int/lit8 v4, v4, 0x1

    invoke-virtual {v3, v4}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v3

    invoke-direct {v1, v2, v3}, Ljava/io/File;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v0, v1}, Ljava/io/File;->renameTo(Ljava/io/File;)Z

    :cond_1
    iget-object v0, p0, Lcom/donson/momark/util/a/q;->a:Lcom/donson/momark/util/a/a;

    invoke-static {v0}, Lcom/donson/momark/util/a/a;->c(Lcom/donson/momark/util/a/a;)Lcom/donson/momark/util/a/w;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/donson/momark/util/a/q;->a:Lcom/donson/momark/util/a/a;

    invoke-static {v0}, Lcom/donson/momark/util/a/a;->c(Lcom/donson/momark/util/a/a;)Lcom/donson/momark/util/a/w;

    move-result-object v0

    iget-object v1, p0, Lcom/donson/momark/util/a/q;->a:Lcom/donson/momark/util/a/a;

    invoke-interface {v0, v1}, Lcom/donson/momark/util/a/w;->a(Lcom/donson/momark/util/a/a;)V

    goto/16 :goto_0

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
    .end packed-switch
.end method
